
// 加载时动画
var g_sLoadingImage = '<img src="../images/loading.gif" alt="处理中..." align="absmiddle" /> ';

$(function(){
	$.ajaxSetup({cache: false});
	var ajaxLoader = $('<div id="ajax-loader">'+g_sLoadingImage+' 处理中...</div>').appendTo("body").hide();
	$('#ajax-loader').ajaxStart(function(){ajaxLoader.fadeIn(200);}).ajaxStop(function(){ajaxLoader.fadeOut(200);}).ajaxError(function(a, b, e){throw e;});
});